package com.cao.project.create;

import com.cao.project.quartz.TaskChangeStatus;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.boot.CommandLineRunner;
import org.springframework.core.annotation.Order;
import org.springframework.stereotype.Component;

@Order(0)
@Component
@Slf4j
public class CommandLineRunnerImpl implements CommandLineRunner {
    @Autowired
    TaskChangeStatus taskChangeStatus;
    @Override
    public void run(String... args) throws Exception {
        System.out.println("应用启动完成：执行CommandLineRunner方法完成资源初始化");
        taskChangeStatus.chang();
    }
}
